package com.atguigu.guli.service.trade.feign;

import com.atguigu.guli.service.base.result.R;
import com.atguigu.guli.service.trade.feign.impl.UcenterMemberServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author Miluo
 * @description ucenter远程调用
 **/
@Service
@FeignClient(value = "service-ucenter",fallback = UcenterMemberServiceImpl.class)
public interface UcenterMemberService {
    @GetMapping("/api/ucenter/member/get-member-dto/{memberId}")
    R getMemberDtoById(@PathVariable String memberId);
}
